<?php
class Cl_UserAttendManager extends WdkManager 
{
	/**
	 * 생성자
	 */
	function __construct()
	{
		parent::__construct();
		$this->dbo = Wdk::model(basename(__DIR__));
		$this->filter	= array();
		$this->order	= array("`user_attend_insert_time` DESC");
	}
	
	protected function newObj()
	{
		return Wdk::get(basename(__DIR__));
	}
	
	public function getLatest($num=5)
	{
		try 
		{	
			$this->listsize	= $num;
			$this->page		= 1;
			$this->where	= array();
			$this->order	= array("`user_attend_insert_time` DESC");
			parent::load();
			return $this->lists;
		}
		catch(WException $e)
		{
			
		}
		return array();
	}
}